import fly from '../utils/request'

//登录
export const login = data => {
    return fly.post('/authorizations',data)
}


//验证码
export const yanZ = mobile => {
    return fly.get(`/sms/codes/${mobile}`)
}

//频道列表
export const channels = () => {
    return fly.get('/user/channels')
}

// 频道列表获取
export const getList = (params) => {
    return fly.get('/articles',params)
   
}

// 获取用户信息
export const user = () => {
    return fly.get('/user')
}

//获取文章详情
export const contentInfo = (id) => {
    return fly.get(`/articles/${id}`)
}